//
//  UserModel.h
//  sweet
//
//  Created by WTTT on 2023/7/10.
//

#import <Foundation/Foundation.h>
#import "MeModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface UserModel : NSObject
// share
+ (instancetype) share;
// 重置单例
+ (void)resetUuserModel;
// 清除本地的所有用户数据
+ (void)clearLocalUserModel;

/// 更新本地的用户数据
/// @param user model
+ (void)updateLocalUserModel:(UserModel *)user;

#pragma mark - 这两个参数每次登录的时候存本地，

@property (nonatomic , strong) NSString * userid;
@property (nonatomic , strong) NSString * account;
@property (nonatomic , strong) NSString * endTime;
///用户token---im密码
@property (nonatomic, strong) NSString *token;
@property (nonatomic, strong) NSString *deviceToken;
@property (nonatomic, strong) NSString *  helperEasemobId;
@property (nonatomic, strong) NSString * fenCount;
@property (nonatomic, strong) NSString * attentionCount;
@property (nonatomic, strong) NSString * visitorCount;
@property (nonatomic, assign) BOOL isVip;
@property (nonatomic, assign) BOOL isTicket;
@property (nonatomic, assign) BOOL isPush;
@property (nonatomic, strong) NSString * name;
@property (nonatomic, strong) NSString * portrait;
@property (nonatomic, strong) NSString *autoPlay;
@property (nonatomic, assign) int  diamond;
@property (nonatomic, assign) int realStatus;
@property (nonatomic ) float lat;
@property (nonatomic ) float lng;
@property (nonatomic ) int  gender;
@property (nonatomic, assign) BOOL isShow;
@property (nonatomic, strong) MeModel * userModel;
@end

NS_ASSUME_NONNULL_END
